package org.example.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author: sql
 * @date: 2024/6/7
 * @Description: 分页结果
 * @version: 1.0
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> implements Serializable {

    @Serial
    private static final long serialVersionUID = -6868692026104831795L;

    /**
     * 总记录
     */
    private Long total;

    /**
     * 数据列表
     */
    private List<T> array;

}
